#!/bin/bash
sed -i 's/ONBOOT=no/ONBOOT=yes/g' /etc/sysconfig/network-scripts/ifcfg-enp0s3
service network restart
yum install -y openssh-server vim

sed -i 's/#Port 22/Port 22/g' /etc/ssh/sshd_config
sed -i 's/#ListenAddress 0.0.0.0/ListenAddress 0.0.0.0/g' /etc/ssh/sshd_config
sed -i 's/#ListenAddress ::/ListenAddress ::/g' /etc/ssh/sshd_config
sed -i 's/#PermitRootLogin yes/PermitRootLogin/g' /etc/ssh/sshd_config
/bin/systemctl start sshd.service
